home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Astronomy / StarAtlas / StarAtlasV2.app / README < prev    next >
Text File  |  1992-12-20  |  4KB  |  102 lines

  1. ______________________________________________________________________________
  2.  
  3.                                     S T A R A T L A S   D A T A B A S E     -     R E A D M E 
  4. ______________________________________________________________________________
  5.                                     
  6.  
  7.  
  8. FILES IN StarAtlasV2.app/:
  9.  
  10.     StarAtlasV2         StarAtlasV2 executable         
  11.     sao.nib            StarAtlasV2 nib file
  12.  
  13.     sao.deepsky        File containing information about deepsky objects
  14.     sao.stars            File containing information about brightest stars
  15.     sao.bin                   File containing binary data about 100000 stars
  16.     sao.const                 File containing information about constellations
  17.  
  18. ___________________________________________________________________________________________________
  19. SAO.DEEPSKY file is in ascii format. You can edit it if you want. There are all the messier objects. The format of the file is:
  20.  
  21. ObjectCharacter        M=messier
  22. Messier_Code         (1 .... 111)
  23. Object_type             1=Galaxy,2=Clust+neb,3=Plan Neb,4=OpenClus,5=GlobClus,6=Gaas Neb, 7=DoubleStar
  24. RightAscHour         (0 ... 24)
  25. RightAscMinute         (0 ... 60)
  26. DeclinationDegree     (-90 .. 90)
  27. DeclinationMinute        (0 ... 60)
  28.  
  29. Example:            If you want to install object M52, which is OPENCLUSTER and location is RA: 23h 24.2m  DE: +61d 35m
  30.          
  31.                     M 52 4 23 24.2 +61 35
  32.  
  33. ___________________________________________________________________________________________________
  34.  SAO.STARS file is in ascii format and you can edit it if you want to. There are the brightest stars. Format of the file is:
  35.  
  36. RaHour                    (0 .. 24) 
  37. RaMin                     (0 .. 60)
  38. RaSec                     (0 .. 60)
  39. DeDegree                 (-90 .. 90)
  40. DeMin                     (0 .. 60)
  41. DeSec                     (0 .. 60 )
  42. Magnitude                 (-float .. float)
  43. NameOfConstellation         (ORI, PER, AND, PEG, LYR, LEO,......)
  44. NameOfStar                 (String[30] -   There has to something. Space is not enough)
  45.  
  46. Example                    6 45 8.9 -16 42 58 -1.46 CMA Sirius
  47.  
  48. ___________________________________________________________________________________________________
  49. SAO.CONST File has similar format as SAO.STARS. File has information how to draw constellations. The drawingformat is
  50. from one star to another star. 
  51.  
  52. Example                
  53.  
  54. 5 35 8.2 9 56 3 3.66 ORI Meissa            (moveto this region)
  55. 5 25 7.8 6 20 59 1.64 ORI Bellatrix        (draw line to this region)
  56. 5 25 7.8 6 20 59 1.64 ORI Bellatrix        (moveto this region)
  57. 5 32 0.3 0 17 57 2.23 ORI Mintaka        (draw line to this region)
  58.  .......
  59.  ..
  60.  .
  61.  .
  62.  
  63.  I didn't found any databases about constellations so I had to write that data by myself. It was not so nice to do, because there
  64.  is not enough stars in SAO.STARS. I had to find those missing stars from SkyAtlas2000, Find the coordinates and write
  65.  them to SAO.CONST
  66.  If you will write more constellations to this file could you please send it to me?     tomi@cc.tut.fi
  67.  
  68.  __________________________________________________________________________________________________
  69.  SAO.BIN is binary file and it contains information about 100000 stars. You can read them by this code:
  70.  
  71.      f=fopen("sao.bin","r");
  72.         while (!feof(f))
  73.         {
  74.             RIGHT_ASC_HOUR=fgetc(f);
  75.             RIGHT_ASC_MINUTE=fgetc(f);
  76.             RIGHT_ASC_SECOND=fgetc(f); 
  77.             DECLINATION_DEGREE=fgetc(f);
  78.             DECLINATION_DEGREE=DECLINATION_DEGREE - 128.0;
  79.             DECLINATION_MINUTE=fgetc(f);
  80.             if (DECLINATION_DEGREE <= 0)DECLINATION_MINUTE=-DECLINATION_MINUTE;
  81.             MAGNITUDE=fgetc(f);
  82.             STARTYPE=fgetc(f);
  83.             MAGNA[I] = (MAGNITUDE-1)/2;
  84.             ALFA2[I]  =((RIGHT_ASC_HOUR*3600+RIGHT_ASC_MINUTE*60+RIGHT_ASC_SECOND)/(24*3600))*2*Pii;
  85.             DELTA2[I] =((DECLINATION_DEGREE*3600+DECLINATION_MINUTE*60)/(90*3600))*Pii/2;   
  86.         }
  87.         fclose(f);
  88. ___________________________________________________________________________________________________
  89.  
  90.  
  91. Any questions:    Tomi Heinonen
  92.                 Opiskelijankatu 9B31
  93.                 33720  TAMPERE
  94.                 Finland
  95.                 
  96.                 email:    tomi@cc.tut.fi
  97. ___________________________________________________________________________________________________
  98.  
  99.  
  100.  
  101.  
  102.